<template>
	<div>
		<dialog :open="bopen" style="background-color: aqua;">
			{{msg}}
		</dialog>
		
	</div>
	
</template>

<script >
	export default{
		data(){
			return{
			
				
				
			}
		},
		computed:{
			bopen(){
			/* 	if(this.$store.state.erropen==true){
					
				} */
				
				return this.$store.state.erropen>0;	
			},
			msg(){
			return this.$store.state.errmag;	
			}
		},
	
		mounthed(){
			// 写定时器去关闭 bopen =false
			setImmediate(()=>{
				this.$store.state.erropen-=1;
			},1000)
			
		}
	}
</script>

<style>
</style>